package ${model_package_service};

import ${name};<#--当前model所在类-->
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;

/**
* Created by lewis on ${.now}.
*/
public interface ${model_name}Service {
     Page<${model_name}> findAll(Pageable pageable);
     Page<${model_name}> findAll(Specification<${model_name}> spec, PageRequest pageRequest);
     ${model_name} get(${model_key_type} ${model_key});
     List<${model_name}> findAll();
     List<${model_name}> findAll(Specification<${model_name}> spec);
     List<${model_name}> findAll(Specification<${model_name}> spec,Sort sort);
     public String save${model_name}(${model_name} ${model_name_entity});
     public void delete${model_name}(${model_name} ${model_name_entity});
     public void delete${model_name}(${model_key_type} ${model_key});
}
